<html>
<head>
<title>NAMBOOT | Website pinjam-meminjam</title>
<link rel="stylesheet" href="<?php echo base_url()?>css/style.css" type="text/css"/>
<script src="<?php echo base_url()?>js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>js/script.js"></script>
</head>
<body>
    <div id="super-wrap">
        <div id="header-hasil">
            <div id="head">
                <div id="logo">
                    <p><a href="<?php echo base_url()?>">NAMB<font color="#fdc86b">OO</font>T</a></p>
                </div>
                <h1>| Situs pinjam-meminjam barang Indonesia</h1>
                <?php 
                    if($this->session->userdata('login')!=true){
                ?>
                <!--            login dropdown-->
                <div id="loginContainer">
                    <a href="#" id="loginButton"><span>LOGIN</span><em></em></a>
                    <div style="clear:both"></div>
                    <div id="loginBox">                
                        <form id="loginForm" method="post" action="<?php echo base_url().'util/login_process'?>">
                            <fieldset id="body">
                                <fieldset>
                                    <label for="email">Email Address</label>
                                    <input type="text" name="email" id="email" />
                                </fieldset>
                                <fieldset>
                                    <label for="password">Password</label>
                                    <input type="password" name="password" id="password" />
                                </fieldset>
                                <input type="submit" id="login" value="SIGN IN" />
                                <label for="checkbox"><input type="checkbox" id="checkbox" />Remember me</label>
                            </fieldset>
                            <span><a href="#">Forgot your password?</a></span>
                        </form>
                    </div>
                </div>
    <!--            end of login-->
                <input type="button" onclick="location.href='<?php echo base_url()?>home/register'" class="button" name="daftar-button" value="DAFTAR"/>
                <?php } else {?>
                <div id="avatar">
                    <div id="avatar-pic">
                        <a href="<?php echo base_url().'member/';?>"><img src="<?php echo base_url()?>asset/icon.png" width="30" height="30"></a>
                    </div>
                    <div id="avatar-name">
                        <a href="<?php echo base_url().'member/';?>"><?php echo $this->session->userdata('name')?></a>
                    </div>
                </div>
                <div id="notification">
                    <a href="<?php echo base_url()?>member"><img src="<?php echo base_url()?>asset/dashboard.png" title="Laman dashboard" width="28" height="22"/></a>
                    <img src="<?php echo base_url()?>asset/search.png" width="28" height="22" onclick="displaySearch()" class="search-icon" id="search-icon"/>
                    <a href="<?echo base_url().'member/to_message'?>"><img src="<?php echo base_url()?>asset/no message.png" width="28" height="22"/></a>
                    <a href="<?php echo base_url().'util/logout'?>"><img src="<?php echo base_url().'asset/logout.png';?>" width="28" height="22"/></a>
                </div>
                <?php }?>
            </div>
        </div>
        <div id="search-head" <?=$display?>>
            <div id="search-head-inside">
                <form method="post" action="<?php echo base_url()?>home/search_processing">
                    <input type="text" name="query" class="search-box" placeholder="Cari barang yang disewakan di sini..." onfocus="this.value=''"/>
                    <?php echo form_dropdown('jenis', $jenis, null, 'class="dropdown-search"') ?>
                    <?php echo form_dropdown('kota', $kota, null, 'class="dropdown-search"'); ?>
                    <input type="submit" value="NAMBOOT" class="search-button"/>
                </form>
            </div>
        </div>
        <div id="button-add">
            <input type="button" onclick="location.href='<?php echo base_url()?>member/rent'" class="button" name="sewakan-button" value="+SEWAKAN BARANG"/>
        </div>
        <div id="categories-hasil">
                <div class="category-item-hasil">
                    <a href=""><img src="<?php echo base_url()?>asset/item-rumah.png" title="Rumah sewaan" width="50" height="57"/></a>
                </div>
                <div class="category-item-hasil">
                    <a href=""><img src="<?php echo base_url()?>asset/item-buku.png" title="Buku/bacaan sewaan" width="50" height="57" /></a>
                </div>
                <div class="category-item-hasil">
                    <a href=""><img src="<?php echo base_url()?>asset/item-elektronik.png" title="Barang elektronik sewaan" width="50" height="57" /></a>
                </div>
                <div class="category-item-hasil">
                    <a href=""><img src="<?php echo base_url()?>asset/item-kendaraan.png" title="Kendaraan sewaan" width="50" height="57" /></a>
                </div>
                <div class="category-item-hasil">
                    <a href=""><img src="<?php echo base_url()?>asset/item-movie.png" title="Film sewaan" width="50" height="57" /></a>
                </div>
                <div class="category-item-hasil">
                    <a href=""><img src="<?php echo base_url()?>asset/item-musik.png" title="Alat musik sewaan" width="50" height="57"/></a>
                </div>
                <div class="category-item-hasil">
                    <a href=""><img src="<?php echo base_url()?>asset/item-misc.png" title="Penyewaan lain-lain" width="50" height="57" /></a>
                </div>
            </div>
        <div id="wrapper">
            <?php if(!empty($navigation)) echo "<h1>".$navigation."</h1>"?>
